package homework.day318;

import homework.day318.demo1.Car;
import homework.day318.demo1.Truck;
import homework.day318.demo2.Circular;
import homework.day318.demo2.Rectangle;

public class Demo {
    public static void main(String[] args) {
        Car car = new Car();
        car.setName("保时捷");
        car.travel();

        Truck truck = new Truck();
        truck.setShipment("苹果");
        truck.travel();

        Circular circular = new Circular();
        circular.setRadius(4.3);
        circular.calculateArea();

        Rectangle rectangle = new Rectangle();
        rectangle.setLength(3.1);
        rectangle.setWidth(1.5);
        rectangle.calculateArea();
    }
}
